Skip to content

fix(test): set queue prefetch in UsageBlockedDispatchTest to prevent flaky failure#1765

Open
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:fix/flaky-usage-blocked-dispatch-test
Open

fix(test): set queue prefetch in UsageBlockedDispatchTest to prevent flaky failure#1765
jbonofre wants to merge 1 commit intoapache:mainfrom
jbonofre:fix/flaky-usage-blocked-dispatch-test

Conversation

@jbonofre
Copy link
Member

The test only set topicPrefetch but uses queues, leaving the default queue prefetch at 1000. This caused the broker to dispatch many messages to the consumer's prefetch buffer, freeing enough memory to unblock the cursor and fail the assertNull check on line 166.

…flaky failure

The test only set topicPrefetch but uses queues, leaving the default
queue prefetch at 1000. This caused the broker to dispatch many messages
to the consumer's prefetch buffer, freeing enough memory to unblock the
cursor and fail the assertNull check on line 166.
@jbonofre jbonofre requested a review from jeanouii March 13, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant